﻿<%@ Control Language="c#" Inherits="Web.Control.WWW.Course.Tags" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="Center9001">
					<div class="center9001right">
						<div class="Title">
							<div class="h1"><%=GetText("Tags for Language Courses") %></div>
						</div>
						<div class="center9001content">
						<div class="content628">
							<div class="answers25_sortarea border" id="askQuestype1">
								<div style="padding:10px"><%=GetText("Teach") %> <select id="TeachLan" class="common180" name="Learning" onchange="searl()"><option value="" selected><%=GetText("C0028")%></option><%=GetLanguageSelect(TL)%></select></div>
							</div>
							<div>	
								<div id="divTagWList">
									<div class="floatl" style="width:48%">									
											<h3><%=GetText("AS137")%></h3>
											<div>
												<div class="floatl"><span class="grey12"><%=GetText("AS064")%></span></div>
												<div class="floatr"><span class="grey12">Courses</span></div>
												<div class="clear"></div>
											</div>										
										<%foreach(string[] tagt in TagLastWeek) {%>
											<div class="margin5">
												<div class="floatl" style="width:240px; overflow:hidden; word-break:break-all"><a href="<%=WWWHost %>/course/tag/<%=tagt[0] %>.htm"><%=tagt[0]%></a></div>
												<div class="floatr"><%=tagt[1]%></div>
												<div class="clear"></div>
											</div>
										<%} %>									
									</div>
								</div>
								<div id="divTagAList">
									<div class="floatr" style="width:48%">
										<h3><%=GetText("AS138")%></h3>
											<div>
												<div class="floatl"><span class="grey12"><%=GetText("AS064")%></span></div>
												<div class="floatr"><span class="grey12">Courses</span></div>
												<div class="clear"></div>
											</div>
										<%foreach(string[] tagt in TagAll) {%>
											<div class="margin5">
												<div class="floatl" style="width:240px; overflow:hidden; word-break:break-all"><a href="<%=WWWHost %>/course/tag/<%=tagt[0] %>.htm"><%=tagt[0]%></a></div>
												<div class="floatr"><%=tagt[1]%></div>
												<div class="clear"></div>
											</div>
										<%} %>
									</div>
								</div>
								<div class="clear"></div>
							</div>
						</div>
						</div>
					</div>
					<div class="Center9001Left">						
						<div class="right_layerA">
							<div class="layer_contentA">
								<h3><%=GetText("Popular language courses") %></h3>
								<div class="layer_contentA5">
								<asp:Repeater ID="rptPopList" runat="server">
									<ItemTemplate>
									<div class="right_question_list">
										<div class="right_question_listPIC"><div class="pic50"><a class="photo_50" href="<%#WWWHost %>/<%#Eval("MemberNo") %>T.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) + "\"/>" : "<img src=\"" + Eval("Avatar").ToString() + "\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) + "\"/>"%></a></div></div>
										<div class="right_question_listCON"><a href="<%#WWWHost %>/course/<%#Eval("CId") %>"><%#Eval("Title")%></a></div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
								</asp:Repeater>
								</div>
								<div class="margin5" style="text-align:right"><a href="<%#WWWHost %>/course/"><%=GetText("More courses") %></a></div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h3><%=GetText("Latest language courses") %></h3>
								<div class="layer_contentA5">
								<asp:Repeater ID="rptLastList" runat="server">
									<ItemTemplate>
									<div class="right_question_list">
										<div class="right_question_listPIC"><div class="pic50"><a class="photo_50" href="<%#WWWHost %>/<%#Eval("MemberNo") %>T.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) + "\"/>" : "<img src=\"" + Eval("Avatar").ToString() + "\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) + "\"/>"%></a></div></div>
										<div class="right_question_listCON"><a href="<%#WWWHost %>/course/<%#Eval("CId") %>"><%#Eval("Title")%></a></div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
								</asp:Repeater>
								</div>
								<div class="margin5" style="text-align:right"><a href="<%#WWWHost %>/course/"><%=GetText("More courses") %></a></div>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
function searl()
{
    top.location="/course/tags.htm?tl="+document.getElementById("TeachLan").value;
}
</script>